package com.ruoyi.production.domain.graftingclip;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 嫁接夹购买申请对象 graftingclip_purchase_apply
 *
 * @author ruoyi
 * @date 2021-07-11
 */
public class GraftingclipPurchaseApply extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号自动编号，主码 */
    private Long graftingclipPurchaseApplyId;

    /** 类型 */
    @Excel(name = "类型编号")
    private Long graftingclipTypeId;
    @Excel(name = "类型名称")
    private String graftingclipType;

    /** 产地 */
    @Excel(name = "产地")
    private String originPlace;

    /** 口径型号 */
    @Excel(name = "口径型号")
    private String graftingclipSpecification;

    /** 购自公司 */
    @Excel(name = "购自公司")
    private String originCompany;

    /** 申请量 */
    @Excel(name = "申请量")
    private Double applyAmount;

    /** 单位 */
    @Excel(name = "单位")
    private String applyUnit;

    /** 审批状态 */
    @Excel(name = "审批状态", readConverterExp = "0=未审批,1=审批通过,2=不通过")
    private Long approvalStatus;
    @Excel(name = "备注")
    private String note;

    /** 预计使用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计使用时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date planUseTime;

    public Date getPlanUseTime() {
        return planUseTime;
    }

    public void setPlanUseTime(Date planUseTime) {
        this.planUseTime = planUseTime;
    }
    /** 备注 */


    public void setGraftingclipPurchaseApplyId(Long graftingclipPurchaseApplyId)
    {
        this.graftingclipPurchaseApplyId = graftingclipPurchaseApplyId;
    }

    public Long getGraftingclipPurchaseApplyId()
    {
        return graftingclipPurchaseApplyId;
    }
    public void setGraftingclipTypeId(Long graftingclipTypeId)
    {
        this.graftingclipTypeId = graftingclipTypeId;
    }

    public Long getGraftingclipTypeId()
    {
        return graftingclipTypeId;
    }

    public void setGraftingclipType(String graftingclipType) {
        this.graftingclipType = graftingclipType;
    }
    public String getGraftingclipType() {
        return graftingclipType;
    }

    public void setOriginPlace(String originPlace)
    {
        this.originPlace = originPlace;
    }

    public String getOriginPlace()
    {
        return originPlace;
    }
    public void setGraftingclipSpecification(String graftingclipSpecification)
    {
        this.graftingclipSpecification = graftingclipSpecification;
    }

    public String getGraftingclipSpecification()
    {
        return graftingclipSpecification;
    }
    public void setOriginCompany(String originCompany)
    {
        this.originCompany = originCompany;
    }

    public String getOriginCompany()
    {
        return originCompany;
    }
    public void setApplyAmount(Double applyAmount)
    {
        this.applyAmount = applyAmount;
    }

    public Double getApplyAmount()
    {
        return applyAmount;
    }
    public void setApplyUnit(String applyUnit)
    {
        this.applyUnit = applyUnit;
    }

    public String getApplyUnit()
    {
        return applyUnit;
    }
    public void setApprovalStatus(Long approvalStatus)
    {
        this.approvalStatus = approvalStatus;
    }

    public Long getApprovalStatus()
    {
        return approvalStatus;
    }
    public void setNote(String note)
    {
        this.note = note;
    }

    public String getNote()
    {
        return note;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("graftingclipPurchaseApplyId", getGraftingclipPurchaseApplyId())
            .append("graftingclipTypeId", getGraftingclipTypeId())
            .append("originPlace", getOriginPlace())
            .append("graftingclipSpecification", getGraftingclipSpecification())
            .append("originCompany", getOriginCompany())
            .append("applyAmount", getApplyAmount())
            .append("applyUnit", getApplyUnit())
            .append("approvalStatus", getApprovalStatus())
            .append("note", getNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
